package com.jzsm.common.core.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * Entity基类
 *
 * @author ruoyi
 */
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 搜索值
     */
    @ApiModelProperty(value = "BaseEntity.搜索值")
    String searchValue;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "BaseEntity.创建者")
    String createBy;
    /**
     * 创建者
     */
    @ApiModelProperty(value = "BaseEntity.创建者")
    String createByName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "BaseEntity.创建时间")
    Date createTime;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "BaseEntity.更新者")
    String updateBy;
    /**
     * 更新者
     */
    @ApiModelProperty(value = "BaseEntity.更新者")
    String updateByName;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "BaseEntity.更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date updateTime;

    /**
     * 备注
     */
    @ApiModelProperty(value = "BaseEntity.备注")
    String remark;

    /**
     * 请求参数
     */
    @ApiModelProperty(value = "BaseEntity.params")
    Map<String, Object> params;

    /**
     * 组织ID
     */
    @ApiModelProperty(value = "BaseEntity.组织ID")
    String orgId;

    /***私密ID****/
    @ApiModelProperty(value = "BaseEntity.私密ID")
    String privacyGroupId;

    String loginUserId;

}
